<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                    	<input type="hidden" id="id" th:value="${info?.id}"/>
                        <div class="form-group">
                            <span class="col-sm-3 control-label">
	                            <label style="color:red">*</label>
	                            <label>问题：</label>
                            </span>
                            <div class="col-sm-8">
                                <input id="question" name="question" th:value="${info?.question}" class="form-control" type="text" maxlength="100">
                            </div>
                        </div>
                        <div class="form-group">
								<label class="col-lg-3 control-label">所属分类：</label>
								<div class="col-lg-8 col-sm-8 col-xs-8">
									<select id="classify" name="classify">
									</select>
								</div>
								<input type="hidden" id="classifyValue" th:value="${info?.classify}"/>
							</div>
                        <div class="form-group">
                            <span class="col-sm-3 control-label">
	                            <label style="color:red">*</label>
	                            <label>排序：</label>
                            </span>
                            <div class="col-sm-8">
                                <input id="sort" name="sort" th:value="${info?.sort}" class="form-control" type="number" >
                            </div>
                        </div>
                        <div class="form-group">
                        	<span class="col-sm-3 control-label">
	                            <label style="color:red">*</label>
	                            <label>回答：</label>
                            </span>
                            <div class="col-sm-8">
	                            <div class="ibox float-e-margins">
	                            	<input type="hidden" id="hasCotent" />
	                                <textarea id="content" name="content" ></textarea>
	                            </div>
                        	</div>
                        </div>
                        <div class="form-group">
                            <div align="center"> 
<!--                            <a class="btn btn-primary btn-sm " onclick="goBack()"><i class="fa fa-arrow-circle-left">返回</i></a> -->
		                        <button type="submit" class="btn btn-primary">提交</button>
	                        </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/layui.js"></script>
<script type="text/javascript" src="/js/lucky/integral/explain/add.js">
</script>
<script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>

</script>
<script type="text/javascript" th:inline="javascript" >
	var ue = UE.getEditor('content',{
        initialFrameWidth : '100%',//宽度
        initialFrameHeight: 300//高度
    });
	// editor准备好之后才可以使用
    ue.addListener("ready", function(){
    	var content = [[${info?.content}]];
    	if(content != null && content != ""){
    		ue.setContent(content); 
    	} 
	}); 
	 
</script>
</body>
</html>
